package com.lkl.hystrixdemo.order.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.client.RestTemplate;

@Service
public class MemberService {

    @Autowired
    RestTemplate restTemplate;

    public String getMember () {
        //String url = "http://localhost:8081/getMember";
        //String res = restTemplate.getForObject(url, String.class);
        return "hi, I am mamber";
    }

}
